{{include "controllers/adminpanel/AdminMediaLibrary/index-leftpanel"}}
{{include "controllers/adminpanel/AdminMediaLibrary/index-rightpanel"}}
<div class="mainpanel">
{{include "controllers/adminpanel/AdminMediaLibrary/index-path"}}
<table class="table table-nowrap">
<colgroup>
	<col style="width: 30px;"/>
	<col style="width: 30px;"/>
	<col style="width: 30px;"/>
	<col style=""/>
	<col style="width: 50px;"/>
	<col style="width: 140px;"/>
	<col style="width: 90px;"/>
	<col style="width: 100px;"/>
</colgroup>
<thead>
<tr>
	<th></th>
	<th></th>
	<th></th>
	<th>Name</th>
	<th>Type</th>
	<th>Date</th>
	<th>Size, bytes</th>
	<th>Info</th>
</tr>
</thead>
<tbody class="folders">
{{foreach item in folders}}
<tr id="folder-{{item.id}}">
	<td class="sortable"></td>
	<td class="c"><input type="checkbox" value="{{item.id}}"/></td>
	<td class="c"><a href="{{call Helpers.copy_url({skip:["file_id","file_folder_id"]})}}file_folder_id={{item.id}}"><img src="/shared/icons/filebrowser/_folder-small.png"/></a></td>
	<td><a href="{{call Helpers.copy_url({skip:["file_id","file_folder_id"]})}}file_folder_id={{item.id}}">{{item.name}}</a></td>
	<td></td>
	<td></td>
	<td></td>
	<td></td>
</tr>
{{/foreach}}
</tbody>
<tbody class="files">
{{foreach item in files}}
<tr id="file-{{item.id}}">
	<td class="sortable"></td>
	<td class="c"><input type="checkbox" value="{{item.id}}"/></td>
	<td class="c"><img data-id="{{item.url}}" src="{{preview("0"):item.icon}}" class="icon"/></td>
	<td class="name">{{item.name}}</td>
	<td>{{item.ext}}</td>
	<td>{{item.date_cr}}</td>
	<td>{{item.filesize}}</td>
	<td>
		{{if item.width}} {{item.width}}x{{item.height}} {{/if}}
		{{if item.seconds}} {{item.seconds}} seconds {{/if}}
	</td>
</tr>
{{/foreach}}
</tbody>
</table>
</div>
<script>
AdminMediaLibraryFuncs.init_sizes();
AdminMediaLibraryFuncs.init_big_previews();
AdminMediaLibraryFuncs.init_name_update();
</script>
